﻿@using KMF.WebUI.Areas.KMFadmin.CustomHelpers
@model KMF.Common.BannerImageDto
<tr style="display: none;" id="@string.Format("bni-{0}", Model.BannerImageId)">
    <td>
        <img src="@string.Format("{0}", Model.ImagePath.ImagePathThumb(50, 50))" />
    </td>
    <td>@Model.Title</td>
    <td>@Model.Description </td>
    <td>@Model.Url</td>
    <td>@Model.UrlStatistic</td>
    <td>@Model.Width</td>
    <td>@Model.Height</td>
    <td>@Model.Order</td>
    <td>
        <input type="checkbox" @string.Format("{0}", Model.Show ? "checked" : "") />
    </td>
    <td>
        @Ajax.ActionLink("sửa", "AjaxEditBannerImage", "AdminBanner", new { bannerImageId = Model.BannerImageId },
                                                new AjaxOptions
                                                {
                                                    OnSuccess = "AjaxResultEditBannerImage"
                                                }, new { @class = "icon-edit-v2 fl-l bootstrapTangoSmall" })
        @Ajax.ActionLink("Xoa", "AjaxDeleteBannerImage", "AdminBanner", new { bannerImageId = Model.BannerImageId, imagePath = Model.ImagePath },
                        new AjaxOptions
                                                {
                                                    Confirm = "Bạn chắc chắn muốn xóa ảnh này!",
                                                    OnSuccess = "AjaxResultDeleteBannerImage"
                                                }, new { @class = "icon-delete fl-l bootstrapTangoSmall" })
    </td>
</tr>
